Skip to main content

Transfer NFT

Transfer an NFT from one wallet to another

Networks Supported:

  • solana-mainnet
  • solana-devnet

Endpoint

POST /api/v0/nfts/solana/transfer/<YOUR_API_KEY>

Test API Key eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IkZJMHljR2kwYWhYRFplQmtleEFFZm1jVzZ1NTMiLCJpYXQiOjE2NzM1OTQ1NjF9.CI2QEG7Ek6juzthOuV4NAstYKPHerzRXRUPpA1B9sb4

Request Body

FieldTypeDescription
from_addressstringPublicKey of the address from which the NFT will transfer
to_addressstringPublicKey of the address to which the NFT will transfer
token_mintstringPublicKey of the NFT mint address
authorityarrayThe authority secret key array
networkstringSolana network (solana-mainnet/solana-devnet)

Code Sample

index.js
const axios = require("axios");

const apiUrl =
"https://app.conciselabs.io/api/v0/tokens/solana/transfer/<YOUR_API_KEY>";

const requestBody = {
from_address: "6cD2Hr6z1QAvuFrTvz9amBVffTkScx8doCA5ykT6U6a9",
to_address: "4cPuZBv5CB7riVMNW8BqDVfvUcQvqaifKrUnyvypGte2",
nft_mint: "2EQjvgsuZ5r82X3N9ADxHHXuPx8oFLygZWig9uctV6n3",
authority: [...],
network: "solana-mainnet"
};

const transfer = async () => {
axios({
method: "POST",
url: apiUrl,
data: requestBody,
headers: {
"content-type": "application/json",
},
})
.then((response) => {
console.log(response.data);
})
.catch((err) => {
console.log(err);
});
};

transfer();

Response

{
transaction: {
context: { apiVersion: '1.13.6', slot: 178264771 },
value: {
confirmationStatus: 'finalized',
confirmations: null,
err: null,
slot: 178264729,
status: [Object]
}
},
signature: "367NgbiHLTgvRB3oqiYWxZUtUKmLRTDBvYBJ7atrHYZeS5PmoiggjNMnMMVKcRSD91uDmHksWFh2J2vxRHnsaxDr"
}